package com.maker.config;

import com.wechat.pay.java.core.util.PemUtil;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.security.PrivateKey;

@Data
@ConfigurationProperties(prefix="wxpay")
//@Component  //到时候需要替换
public class WxPayProperties {
    //商户号
    private String mchId="1558950191";
    //商户API证书序列号
    private String mchSerialNo="34345964330B66427E0D3D28826C4993C77E631F";
    //商户私钥文件
    private String privateKeyPath="./apiclient_key.pem";
    private String publicKeyPath="./apiclient_key.pem";
    private String privateKey="MIIEowIBAAKCAQEAv";

    private String publicKey="MIIEowIBAAKCAQEAv";
    private String publicKeyId;
    //APIV3密钥
    private String apiV3Key="默认apiv3Key";
    //APPID
    private String appId="wx74862e0dfcf69954";
    //微信服务器地址
    private String domain="https://api.mch.weixin.qq.com";
    //接收结果通知地址  通过内网穿透做联调
    private String notifyDomain="https://7d92-115-171-63-135.ngrok.io";
//    private String privateKey="默认私钥";



}
